<div class="userform login_form">
<?php if(validation_errors()|$this->session->userdata('loidn')){
    echo 
    '<div class="thongbao"> ';     
     echo form_error('username');
     echo form_error('password');  
     echo $this->session->userdata('loidn');
     $this->session->unset_userdata('loidn');      
   echo ' 
     <div id="close_login"></div>
     </div>';
} ?>
 

  <div class="form_contetn">  
    <form  class="clearfix" action="<?php echo base_url().'user/login'?>" method="post">  
                      
            <input class="inputform" type="text" id="name" name="username" value="<?php if(set_value('username'))echo set_value('username');else echo 'Username' ?>" 
            onblur="if (this.value=='') this.value = 'Username'"
            onfocus="if (this.value=='Username') this.value = ''"/>                      
            <input class="inputform" type="password" id="name" name="password" value="<?php if(set_value('password'))echo set_value('password');else echo 'Password'?>" 
            onblur="if (this.value=='') this.value = 'Password'"
            onfocus="if (this.value=='Password') this.value = ''"/>             
            <div class="bottom_log">
                <input type="checkbox"/> Remember Me
                <input class="sm" type="submit" value="Sign-in" /> 
            </div>   
	</form>  
	
	</div>  
    <div id="bgformbot"></div>
</div><!--end prohighlight-content -->
  
<script>
$('document').ready(function(){
    $('#close_login').click(function(){
        $('.thongbao').fadeOut(800);   
    })
    
})
</script>  
